package com.zz.dubbo.example.service;

import com.zz.dubbo.example.commons.resopnse.Response;
import com.zz.dubbo.example.dao.CityDao;
import com.zz.dubbo.example.model.City;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

/**
 * Created by zhouzeng on 2017/8/25.
 */
@Service
public class CityServiceImpl implements CityService {
    @Autowired
    private CityDao cityDao;

    @Override
    public Response<List<City>> list() {
        List<City> citys = cityDao.list(new HashMap<String, Object>());
        return Response.ok(citys);
    }
}
